delete testscore

PUT testscore/_bulk
{ "index": { "_id": 1 }}
{ "content":"we use Elasticsearch to power the search" }
{ "index": { "_id": 2 }}
{ "content":"we like elasticsearch" }
{ "index": { "_id": 3 }}
{ "content":"The scoring of documents is caculated by the scoring formula" }
{ "index": { "_id": 4 }}
{ "content":"you know, for search" }


POST /testscore/_search
{
  "explain": true,
  "query": {
    "match": {
    //   "content":"you"
      "content": "elasticsearch"
      //"content":"the"
      //"content": "the elasticsearch"
    }
  }
}


// 根据结果  boost * idf * tf 可知, boost 可以影响结果, >1打分权重提升, 0< boost <1 权重降低, boost<0, 负分
// k1, b 这两个参数也能影响



delete testscore